package com.jd.nbd.strategy02;

/**
 * 用户想生成的报表
 */
public class Client {
  public static void main(String[] args) {
    Context lineContext = new Context(new Line());//生成线性图
    lineContext.createReport();
    System.out.println("-------------------------------------");
    Context pieContext = new Context(new Pie());//生成饼图
    pieContext.createReport();
    System.out.println("-------------------------------------");
    Context columnContext = new Context(new Column());//生成柱状图
    columnContext.createReport();
  }
}